package com.wukaige.goods.controller;


import com.wukaige.goods.entity.City;
import com.wukaige.goods.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 城市表 前端控制器
 * </p>
 *
 * @author wukaige
 * @since 2021-07-20
 */
@RestController
@RequestMapping("/city")
public class CityController {

    @Autowired
    ICityService cityService;

    @RequestMapping("getcity")
    public List<City> getcity(){
        return cityService.getcity();
    }
}

